const audio = uni.createInnerAudioContext()
audio.onPlay(function() {
  console.log('音频开始播放');
});

const playSound = (src) =>{
  audio.src = src 
  audio.play();
}

const playReceive = () => {
  playSound('/static/mp3/msgTip2.mp3')
}

const playSend = () => {
  playSound('/static/mp3/send.mp3')
}
export default {
  playReceive,
  playSend
}